.tags-page {
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
}

.add-tag {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tag-input {
  padding: 12px;
  border: 2px solid #eee;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.tag-input:focus {
  outline: none;
  border-color: #fda085;
}

.color-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  border-color: #333;
  transform: scale(1.15);
}

.add-button {
  padding: 12px 24px;
  background: #fda085;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
  align-self: flex-start;
}

.add-button:hover {
  background: #f6d365;
}

.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.tag-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-top: 4px solid;
  transition: transform 0.2s ease;
}

.tag-card:hover {
  transform: translateY(-2px);
}

.tag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.tag-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-color-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.tag-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.delete-button {
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 5px;
  transition: color 0.3s ease;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-button:hover {
  color: #ff5252;
  background: rgba(255, 107, 107, 0.1);
}

.tag-stats {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

.tag-todos {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.todo-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 4px;
}

.todo-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ecdc4;
  flex-shrink: 0;
}

.todo-status.completed {
  background: #95e1d3;
}

.todo-text {
  font-size: 0.9rem;
  color: #333;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.todo-text.completed-text {
  text-decoration: line-through;
  color: #888;
}

.priority-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.priority-indicator.high {
  background: #ff6b6b;
}

.priority-indicator.medium {
  background: #fda085;
}

.priority-indicator.low {
  background: #4ecdc4;
}

.more-todos,
.no-todos {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 4px;
}

.no-todos {
  font-style: italic;
}

.no-tags-message {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.no-tags-message p {
  color: #666;
  font-size: 1.1rem;
  margin: 0;
}

.back-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #fda085;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.back-button:hover {
  background: #f6d365;
}

/* Dark theme support */
.dark .tags-page {
  background: linear-gradient(120deg, #2d3748 0%, #4a5568 100%);
}

.dark .add-tag {
  background: #2d3748;
  color: #e2e8f0;
}

.dark .tag-input {
  background: #4a5568;
  border-color: #718096;
  color: #e2e8f0;
}

.dark .tag-input:focus {
  border-color: #fda085;
}

.dark .tag-card {
  background: #2d3748;
  color: #e2e8f0;
}

.dark .stat-value {
  color: #e2e8f0;
}

.dark .todo-preview {
  background: #4a5568;
}

.dark .todo-text {
  color: #cbd5e0;
}

.dark .more-todos,
.dark .no-todos {
  background: #4a5568;
  color: #a0aec0;
}

.dark .no-tags-message {
  background: #2d3748;
  color: #e2e8f0;
}

.dark .no-tags-message p {
  color: #a0aec0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .tags-grid {
    grid-template-columns: 1fr;
  }
  
  .tag-stats {
    gap: 10px;
  }
  
  .color-selector {
    justify-content: center;
  }
} 